package com.annhoa.domain.service;

import com.annhoa.domain.entity.SysUser;
import com.annhoa.infrastructure.common.PageData;
import com.annhoa.infrastructure.security.JwtAuthenticationResponse;

public interface AuthService {
    SysUser register(SysUser sysUserToAdd);
    JwtAuthenticationResponse login(String username, String password); //ajax登录
    Object loginPage(PageData pd);  //页面登录
    JwtAuthenticationResponse refresh(String oldToken);
}
